package br.com.nautical.email.util;

import org.hibernate.Session;

public class Conecta {

	public static void main(String[] args) {
		Session sessao = null;
		
		try {
			System.out.println("Connectando...");
			sessao = HibernateUtil.getSession().openSession();
			System.out.println("Connectado");
		} finally {
			sessao.close();
			System.out.println("Encerrado Conexão.");
		}
	}
}
